<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
    <namespaces>
        <Namespace>
            <prefix>gmd</prefix>
            <uri>http://www.isotc211.org/2005/gmd</uri>
        </Namespace>
        <Namespace>
            <prefix>gml</prefix>
            <uri>http://www.opengis.net/gml/3.2</uri>
        </Namespace>
        <Namespace>
            <prefix>sa</prefix>
            <uri>http://www.opengis.net/sampling/2.0</uri>
        </Namespace>
        <Namespace>
            <prefix>spec</prefix>
            <uri>http://www.opengis.net/samplingSpecimen/2.0</uri>
        </Namespace>
        <Namespace>
            <prefix>xlink</prefix>
            <uri>http://www.w3.org/1999/xlink</uri>
        </Namespace>
    </namespaces>
    <sourceDataStores>
        <DataStore>
            <id>datastore</id>
            <parameters>
                <Parameter>
                    <name>directory</name>
                    <value>file:./</value>
                </Parameter>
            </parameters>
        </DataStore>
    </sourceDataStores>
    <targetTypes>
        <FeatureType>
            <schemaUri>http://schemas.opengis.net/samplingSpecimen/2.0/specimen.xsd</schemaUri>
        </FeatureType>
    </targetTypes>
    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>datastore</sourceDataStore>
            <sourceType>SpecimenWfsTest</sourceType>
            <targetElement>
                spec:SF_Specimen
            </targetElement>
            <attributeMappings>
                <AttributeMapping>
                    <targetAttribute>
                        spec:SF_Specimen
                    </targetAttribute>
                    <idExpression>
                        <OCQL>ID</OCQL>
                    </idExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>gml:name</targetAttribute>
                    <sourceExpression>
                        <OCQL>NAME</OCQL>
                    </sourceExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>sa:sampledFeature</targetAttribute>
                    <ClientProperty>
                        <name>xlink:href</name>
                        <value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>spec:materialClass</targetAttribute>
                    <ClientProperty>
                        <name>xlink:href</name>
                        <value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>spec:samplingTime</targetAttribute>
                    <ClientProperty>
                        <name>xlink:href</name>
                        <value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>spec:size</targetAttribute>
                    <sourceExpression>
                        <OCQL>WEIGHT</OCQL>
                    </sourceExpression>
                    <ClientProperty>
                        <name>uom</name>
                        <value>'http://www.opengis.net/def/uom/UCUM/g'</value>
                    </ClientProperty>
                </AttributeMapping>
            </attributeMappings>
        </FeatureTypeMapping>
    </typeMappings>
</as:AppSchemaDataAccess>